import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

/**
 *
 * @author Bora SAYINER
 * @since Dec 28, 2014 1:15:03 PM
 * @version 1.0
 */
public class Main {

	public static void main(String[] args) {
		TimerTask timerTask = new TimerTask() {
			@Override
			public void run() {
				System.out.println(new Date());
			}
		};
		Timer timer = new Timer("Stopwatch");
		System.out.println(new Date());
		timer.schedule(timerTask, 5000, 1000);

	}
}
